<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc 日志类型 添加
@author WeiXiaoJin
@since 2020-01-26 09:30:11
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">
								<form class="form-horizontal" id="addForm">
<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">记录渠道</label>
	<div class="col-md-9">
				<input class="form-control" id="recordChannel" type="text" name="recordChannel" placeholder="记录渠道">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">详细信息</label>
	<div class="col-md-9">
				<input class="form-control" id="recordMsg" type="text" name="recordMsg" placeholder="详细信息">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">请求参数</label>
	<div class="col-md-9">
				<input class="form-control" id="recordParams" type="text" name="recordParams" placeholder="请求参数">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">记录类型</label>
	<div class="col-md-9">
				<input class="form-control" id="recordType" type="text" name="recordType" placeholder="记录类型">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">操作用户</label>
	<div class="col-md-9">
				<input class="form-control" id="recordUser" type="text" name="recordUser" placeholder="操作用户">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">recordUserName</label>
	<div class="col-md-9">
				<input class="form-control" id="recordUserName" type="text" name="recordUserName" placeholder="">
			</div>
</div>
																									</form>
							</div>
						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var addForm = $("#addForm") ; 
		$(function(){
			addForm.validate({
				ignore: [],  
				rules: {
recordChannel: {required:true}
,recordMsg: {required:true}
,recordParams: {required:true}
,recordType: {required:true}
,recordUser: {required:true}
,recordUserName: {required:true}
				}
			});
		}) ;

		function submitHandler() {
			var result = $.validate.form("addForm");
			if(result){	
				var saveUrl = ctx+"base/logger/logRecord/save" ;
				$.operate.save(saveUrl , addForm.serialize());
			}
	    }
	</script>

</body>
</html>


